home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 904 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Capturing stdout from a forked process
  5. Date: Wed, 10 Jan 96 01:12:52 GMT
  6. Organization: none
  7. Message-ID: <821236372snz@genesis.demon.co.uk>
  8. References: <1996Jan9.162406.24172@hrbicf>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <1996Jan9.162406.24172@hrbicf>
  15.            m1w@icf.hrb.com "Michael E. Warren" writes:
  16.  
  17. >
  18. >Can anyone tell me how to have one process spawn another using fork and exec 
  19. >and capture that processes stdout?  I'd like to use some standard Unix commands
  20. >and examine their results in C program.
  21.  
  22. You will need to use Unix specific library calls to do this - the C language
  23. itself can't help you. Try comp.unix.programmer.
  24.  
  25. -- 
  26. -----------------------------------------
  27. Lawrence Kirby | fred@genesis.demon.co.uk
  28. Wilts, England | 70734.126@compuserve.com
  29. -----------------------------------------
  30.